<script setup>
import { inject } from 'vue';
import ComB from './ComB.vue';

// 2. 通过inject获取provide提供的数据
const aMsg = inject('msg')
const count = inject('count')
</script>

<template>
  <div class="a-page">a: {{ aMsg }} --- {{ count }}

    <ComB/>
  </div>
</template>

<style scoped>
.a-page {
    width: 500px;
    height: 500px;
    border: 2px solid #000;
}
</style>
